export default {
  // 设置token
    SET_TOKEN: (state, token) => {
      state.token = token
      // console.log(state.token)
    },
    // 设置用户个人信息
    SET_USERINFO :(state,res) => {
      state.userInfo = res
    },

    // 退出登录 ， 并格式化状态
    LOGIN_OUT : (state,res) => {
      state.userInfo = res
    },
    
    SET_INTRODUCTION: (state, introduction) => {
      state.introduction = introduction
    },
    
    SET_NICKNAME :(state,res)  => {
      state.userInfo.nick_name = res
    },
    SET_PROFESSION :(state,res) => {
      state.userInfo.profession = res
    },
    
    SET_ACTISTATUS :(state, res) => {
      state.acti.status = res
    },
    SET_ACTIINFO :(state,res) => {
      state.acti.activity_id = res.activity_id;
      state.acti.product_id  =res.product_id
    },
    SET_STATUS:(state,res) => {
      state.status = res
    }
}